package pro.bbs.server.mapper.bbs;

import com.yy.pojo.bbs.TPost;
import com.yy.pojo.bbs.TPostExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 论坛帖子的操作mapperDAO
 * </p>
 *
 * @author 杨阳
 * @since 2017年10月12日
 */
@Repository
public interface TPostMapper {
    long countByExample(TPostExample example);

    int deleteByExample(TPostExample example);

    int deleteByPrimaryKey(String id);

    int insert(TPost record);

    int insertSelective(TPost record);

    List<TPost> selectByExample(TPostExample example);

    TPost selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TPost record, @Param("example") TPostExample example);

    int updateByExample(@Param("record") TPost record, @Param("example") TPostExample example);

    int updateByPrimaryKeySelective(TPost record);

    int updateByPrimaryKey(TPost record);
}